package com.sxt.test.com.sxt.consumer.service.impl;

import com.sxt.core.anno.AutoBuilder;
import com.sxt.core.anno.Ref;
import com.sxt.test.com.sxt.api.service.LinkService;
import com.sxt.test.com.sxt.consumer.service.ConsumerService;

@AutoBuilder
public class ConsumerServiceImpl implements ConsumerService {

	@Ref // 注入一个远程的代理对象
	private LinkService linkService;

	@Override
	public String getAnswer() {
		System.out.println("使用linkService 完成远程调用");
		return linkService.link();
	}
}
